{include file="pub/header" /}
	<div class="body">
		<div class="search">
			<form action="">
				<input type="text" name="url"  value="{if condition='$url'}{$url}{/if}" placeholder="请输入请求地址">
				<input type="text" name="time" id="time" placeholder="请选择日期" value="{if condition="!empty($time)"}{$time}{/if}" />
				<input type="hidden" name="id" value="{if condition="isset($id)"}{$id}{/if}" />
				<input type="submit" value="搜索" />
				<script type="text/javascript" src="/static/laydate/laydate.js"></script>
				<!-- 实例化编辑器 -->
				<script type="text/javascript">
					laydate.render({
						elem: '#time',
						calendar: true
					});
				</script>
			</form>
		</div>
		<div class="search">
			{if condition="isset($log)"}
				<input type="text" value="日期:{$day}" disabled="disabled">
				{foreach name="log" item="vo" }
					<input type="text" value="{$vo.ad_name}:{$vo.num}" disabled="disabled">
				{/foreach}
			{/if}
		</div>
		<div class="nav">
			<a href="/admin/setup/log.html">全部</a>
		</div>
		<div class="table">
			<table cellspacing="0" cellpadding="0">
				<thead>
					<tr>
						<th>ID</th>
						<th>用户ID</th>
						<th>用户名</th>
						<th>时间</th>
						<th>来源地址</th>
						<th>来源IP</th>
						<th>请求方式</th>
						<th>请求地址</th>
						<th>GET参数</th>
						<th>POST参数</th>
						<th>文件参数</th>
					</tr>
				</thead>
				<tbody>
					{foreach name="list" item="vo" }
					    <tr>
							<td>{$vo.id}</td>
							<td>{$vo.ad_id}</td>
							<td><a href="/admin/setup/log.html?id={$vo.ad_id}" >{$vo.ad_name}</a></td>
							<td>{$vo.time_info}</td>
							<td>{$vo.query_url}</td>
							<td>{$vo.query_ip}</td>
							<td>{$vo.method}</td>
							<td>{$vo.url}</td>
							<td>{$vo.get}</td>
							<td>{$vo.post}</td>
							<td>{$vo.files}</td>
						</tr>
					{/foreach}
				</tbody>
			</table>
		</div>
		<div class="page">
			{$page}
		</div>
	</div>
{include file="pub/footer" /}
